package com.nali.dal.statement.upsert;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.nali.dal.dao.general.IGeneralInsertDao;
import com.nali.dal.statement.query.ColumnUnitFactory;

public class InserterStatement  {
	private InserterImpl inserter;
	
	public Inserter getInserter() {
		return inserter;
	}

	@Autowired
	public InserterStatement(ColumnUnitFactory columnUnitFactory, IGeneralInsertDao insertDao) {
		inserter=new InserterImpl();
		inserter.setColumnUnitFactory(columnUnitFactory);
		inserter.setInsertDao(insertDao);
	}

	public void setInto(String table) {
		inserter.setTable(table);
	}

	public void setValues(List<String> columns) {
		inserter.setValues(columns);
	}
	
}